<?php
/**
 *
 * @author griever
 * @version 
 */
require_once 'Zend/Loader/PluginLoader.php';
require_once 'Zend/Controller/Action/Helper/Abstract.php';
require_once 'Base.php';

/**
 * NormalizeContent Action Helper 
 * 
 * @uses actionHelper Custom_Helper
 */
class Custom_Helper_NormalizeContent extends Dummy_Helper_Base {
	
	public function normalize($profilePartial, $default) {
		if (! $profilePartial)
			$profilePartial = $default;
		return $profilePartial;
	}
	
	/**
	 * Strategy pattern: call helper as broker method
	 */
	public function direct($profilePartial, $default='') {
		// TODO Auto-generated 'direct' method
		return $this->normalize($profilePartial, $default);
	}
}

